package com.xhl.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xhl.dao.IProductImageDao;
import com.xhl.vo.ProductImageVO;

@Service
public class ProductImageService implements IProductImageDao {


    @Autowired
    IProductImageDao iProductImageDao;


    @Override
    public List<ProductImageVO> queryProductImage(String pid, String type) {
        return iProductImageDao.queryProductImage(pid, type);
    }


    @Override
    public void addProductImage(ProductImageVO pivo) {
        iProductImageDao.addProductImage(pivo);
    }


    @Override
    public Long queryMax() {
        return iProductImageDao.queryMax();
    }


    @Override
    public void deleteProductImage(String piid) {
        iProductImageDao.deleteProductImage(piid);
    }


}
